package com.example.demo.excel.service;
/**
 * @author zjq
 * @version 创建时间：2021-12-17 9:12:29
 */

import com.example.demo.excel.db.entity.BaseTeacherInfo;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.List;
import java.util.Map;

public interface BaseTeacherService {


    /**
     * @param  导出教师模板
     * @return
     */
    void exportTemplate(HttpServletRequest req, HttpServletResponse resp);


    /**
     * 批量导入教师
     * @param file
     * @return
     */
    Map<String, List<BaseTeacherInfo>> importExcelTeacherinfo(MultipartFile file);

    /**
     * 教师导出错误信息
     * @param fileName
     * @param list
     * @param resp
     */
    void exportTeacherinfo(String fileName, List<BaseTeacherInfo> list, HttpServletResponse resp);

}
